import http from '@/utils/request'
import defaultSettings from '@/settings'

export function getPage(data) {
  return http.request({
    url: 'CloudStock/AgentWarehousePageAsync',
    method: 'get',
    params: data,
    baseURL: defaultSettings.apiShopUrl
  })
}

export function getRecordPage(data) {
  return http.request({
    url: 'CloudStock/AgentWarehouseRecordPageAsync',
    method: 'get',
    params: data,
    baseURL: defaultSettings.apiShopUrl
  })
}

export function getDetail(id) {
  return http({
    url: 'orderpay/GetById?id=' + id,
    method: 'get',
    baseURL: defaultSettings.apiShopUrl
  })
}


